#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: 20210608.py
# @time: 2021/6/8 10:15
# @desc:
# from .utils.utils import read_json
#
# standard_parts = read_json("data/standard_part/standard_part.json")
#
# part_function = []
# for i in standard_parts:
#     print(i["partFunction"])
#     part_function.append(i["partFunction"])
#
# part_function = list(set(part_function))
#     # print(i["version"])
from .utils.mongo_tools import retrieve_all_mongo_values

history_part_config = retrieve_all_mongo_values({"type": "historyPart"}, collection_name="config")[0]["configData"]

for i in history_part_config['partType'].keys():
    print(i)
